package com.yun.hello;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class HelloCustomer {

    @RabbitListener(queuesToDeclare = @Queue("hello"))
    public void receive(String message){
        System.out.println(message);
    }
}
